﻿using System;

namespace 结构
{
	public struct Person
	{
	    public string _name;  //这个name是字段
		public int _age;
		public Gender _gender;
		//字段能存很多，但是变量只能存一个值
		//字段的规范起名字前面加'_';
		
	}

	public enum Gender
	{
		男,女
	}
	class Program
	{
		static void Main(string[] args)
		{
			
			Person zsPerson;
			zsPerson._name = "张三";
			zsPerson._age = 21;
			zsPerson._gender = Gender.男;

			Person lsPerson;
			lsPerson._name = "李四";
			lsPerson._age = 33;
			lsPerson._gender = Gender.女;
		}
	}
}
